import React, { lazy } from "react"

const Home = lazy(() => import('../pages/Home'))
const Login = lazy(() => import('../pages/Login'))
const Sign = lazy(() => import('../pages/Sign'))
const Tag = lazy(() => import('../pages/Tag'))
const Search = lazy(() => import('../pages/Search'))

const routes = [
  {
    path: '/',
    element: <Home />
  },
  {
    path: '/login',
    element: <Login />
  },
  {
    path: '/sign',
    element: <Sign />
  },
  {
    path: '/tag',
    element: <Tag />
  },
  {
    path: '/search',
    element: <Search />
  },
]

export default routes